package com.search.feign;

import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-04-07 10:14
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @RequestMapping("/product/attr/info/{attrId}")
    R info(@PathVariable("attrId") Long attrId);

    @PostMapping("/product/brand/infoList")
    R infoList(@RequestParam("brandIdList") List<Long> brandIdList);

    @RequestMapping("/product/category/info/{catId}")
    R catalogInfo(@PathVariable("catId") Long catId);
}
